package com.greenleaf.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.greenleaf.dao.PdtImgDao;
import com.greenleaf.entity.PdtImgs;
import com.greenleaf.entity.SearchCon;
import com.greenleaf.service.PdtImgService;
@Service("pdtImgService")
public class PdtImgServiceImpl implements PdtImgService {
	@Resource
	private PdtImgDao pdtImgDao;

	@Override
	public List<PdtImgs> getAllPdtImg(SearchCon searchCon) {
		return pdtImgDao.getAllPdtImg(searchCon);
	}

	@Override
	public int getTotalPdtImg(SearchCon searchCon) {
		return pdtImgDao.getTotalPdtImg(searchCon);
	}

	@Override
	public int addPdtImg(PdtImgs pdtImg) {
		return pdtImgDao.addPdtImg(pdtImg);
	}

	@Override
	public int updatePdtImg(PdtImgs pdtImg) {
		return pdtImgDao.updatePdtImg(pdtImg);
	}

	@Override
	public int delPdtImg(int pdtImgId) {
		return pdtImgDao.delPdtImg(pdtImgId);
	}

	@Override
	public int delPdtImgs(int pdtId) {
		return pdtImgDao.delPdtImgs(pdtId);
	}

	
	
}



